import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "amfe-flexible"

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

Vue.config.productionTip = false

// 监听本地存储删除刷新页面
window.addEventListener('storage', function (e) {
  console.log(e)
  if (localStorage.getItem("adminToken")) {

  } else {
    location.reload();
  }
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
